<%@ page import="user.User" %>

<% {
	User user = (User) session.getAttribute("user"); %>
	<form class="form-horizontal" role="form" id="form_challenge_response" method="post" action="">
		<div class="form-group form-group-sm">
			<label class="control-label col-sm-2" for="form_challenge_response_duration">Retard</label>
			<div class="col-sm-4">
				<input class="form-control input-sm" id="form_challenge_response_duration" type="number" value="1" min="1" max="30" step="1" style="width: 75px">
			</div>
			<div class="col-sm-4">
				<input class="form-control input-sm" id="form_challenge_response_profit" type="text" style="width: 100px" disabled>
			</div>
	 	</div>
		<div class="form-group form-group-sm">
			<label class="control-label col-sm-2" for="form_challenge_response_bet">Mise</label>
			<div class="col-sm-4">
				<input class="form-control input-sm" id="form_challenge_response_bet" type="number" value="1" min="1" max="<%= user.getPoints() %>" step="1" style="width: 75px">
			</div>
			<div class="col-sm-4">
				<button class="btn btn-primary" type="submit">Parier</button>
			</div>
	 	</div>
	</form>
<% } %>